// Common aliases
var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;

// Exported root namespace
var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});

$root.CopyInfo = (function() {

    /**
     * Properties of a CopyInfo.
     * @exports ICopyInfo
     * @interface ICopyInfo
     * @property {number|null} [code] CopyInfo code
     * @property {number|null} [progress] CopyInfo progress
     * @property {string|null} [desc] CopyInfo desc
     */

    /**
     * Constructs a new CopyInfo.
     * @exports CopyInfo
     * @classdesc Represents a CopyInfo.
     * @implements ICopyInfo
     * @constructor
     * @param {ICopyInfo=} [properties] Properties to set
     */
    function CopyInfo(properties) {
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * CopyInfo code.
     * @member {number} code
     * @memberof CopyInfo
     * @instance
     */
    CopyInfo.prototype.code = 0;

    /**
     * CopyInfo progress.
     * @member {number} progress
     * @memberof CopyInfo
     * @instance
     */
    CopyInfo.prototype.progress = 0;

    /**
     * CopyInfo desc.
     * @member {string} desc
     * @memberof CopyInfo
     * @instance
     */
    CopyInfo.prototype.desc = "";

    /**
     * Creates a new CopyInfo instance using the specified properties.
     * @function create
     * @memberof CopyInfo
     * @static
     * @param {ICopyInfo=} [properties] Properties to set
     * @returns {CopyInfo} CopyInfo instance
     */
    CopyInfo.create = function create(properties) {
        return new CopyInfo(properties);
    };

    /**
     * Encodes the specified CopyInfo message. Does not implicitly {@link CopyInfo.verify|verify} messages.
     * @function encode
     * @memberof CopyInfo
     * @static
     * @param {ICopyInfo} message CopyInfo message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    CopyInfo.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.code != null && message.hasOwnProperty("code"))
            writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code);
        if (message.progress != null && message.hasOwnProperty("progress"))
            writer.uint32(/* id 2, wireType 0 =*/16).int32(message.progress);
        if (message.desc != null && message.hasOwnProperty("desc"))
            writer.uint32(/* id 3, wireType 2 =*/26).string(message.desc);
        return writer;
    };

    /**
     * Encodes the specified CopyInfo message, length delimited. Does not implicitly {@link CopyInfo.verify|verify} messages.
     * @function encodeDelimited
     * @memberof CopyInfo
     * @static
     * @param {ICopyInfo} message CopyInfo message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    CopyInfo.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes a CopyInfo message from the specified reader or buffer.
     * @function decode
     * @memberof CopyInfo
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {CopyInfo} CopyInfo
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    CopyInfo.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CopyInfo();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
            case 1:
                message.code = reader.int32();
                break;
            case 2:
                message.progress = reader.int32();
                break;
            case 3:
                message.desc = reader.string();
                break;
            default:
                reader.skipType(tag & 7);
                break;
            }
        }
        return message;
    };

    /**
     * Decodes a CopyInfo message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof CopyInfo
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {CopyInfo} CopyInfo
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    CopyInfo.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies a CopyInfo message.
     * @function verify
     * @memberof CopyInfo
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    CopyInfo.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.code != null && message.hasOwnProperty("code"))
            if (!$util.isInteger(message.code))
                return "code: integer expected";
        if (message.progress != null && message.hasOwnProperty("progress"))
            if (!$util.isInteger(message.progress))
                return "progress: integer expected";
        if (message.desc != null && message.hasOwnProperty("desc"))
            if (!$util.isString(message.desc))
                return "desc: string expected";
        return null;
    };

    /**
     * Creates a CopyInfo message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof CopyInfo
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {CopyInfo} CopyInfo
     */
    CopyInfo.fromObject = function fromObject(object) {
        if (object instanceof $root.CopyInfo)
            return object;
        var message = new $root.CopyInfo();
        if (object.code != null)
            message.code = object.code | 0;
        if (object.progress != null)
            message.progress = object.progress | 0;
        if (object.desc != null)
            message.desc = String(object.desc);
        return message;
    };

    /**
     * Creates a plain object from a CopyInfo message. Also converts values to other types if specified.
     * @function toObject
     * @memberof CopyInfo
     * @static
     * @param {CopyInfo} message CopyInfo
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    CopyInfo.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.defaults) {
            object.code = 0;
            object.progress = 0;
            object.desc = "";
        }
        if (message.code != null && message.hasOwnProperty("code"))
            object.code = message.code;
        if (message.progress != null && message.hasOwnProperty("progress"))
            object.progress = message.progress;
        if (message.desc != null && message.hasOwnProperty("desc"))
            object.desc = message.desc;
        return object;
    };

    /**
     * Converts this CopyInfo to JSON.
     * @function toJSON
     * @memberof CopyInfo
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    CopyInfo.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    return CopyInfo;
})();

$root.CopyReward = (function() {

    /**
     * Properties of a CopyReward.
     * @exports ICopyReward
     * @interface ICopyReward
     * @property {number|null} [itemId] CopyReward itemId
     * @property {string|null} [title] CopyReward title
     * @property {number|null} [count] CopyReward count
     * @property {string|null} [desc] CopyReward desc
     */

    /**
     * Constructs a new CopyReward.
     * @exports CopyReward
     * @classdesc Represents a CopyReward.
     * @implements ICopyReward
     * @constructor
     * @param {ICopyReward=} [properties] Properties to set
     */
    function CopyReward(properties) {
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * CopyReward itemId.
     * @member {number} itemId
     * @memberof CopyReward
     * @instance
     */
    CopyReward.prototype.itemId = 0;

    /**
     * CopyReward title.
     * @member {string} title
     * @memberof CopyReward
     * @instance
     */
    CopyReward.prototype.title = "";

    /**
     * CopyReward count.
     * @member {number} count
     * @memberof CopyReward
     * @instance
     */
    CopyReward.prototype.count = 0;

    /**
     * CopyReward desc.
     * @member {string} desc
     * @memberof CopyReward
     * @instance
     */
    CopyReward.prototype.desc = "";

    /**
     * Creates a new CopyReward instance using the specified properties.
     * @function create
     * @memberof CopyReward
     * @static
     * @param {ICopyReward=} [properties] Properties to set
     * @returns {CopyReward} CopyReward instance
     */
    CopyReward.create = function create(properties) {
        return new CopyReward(properties);
    };

    /**
     * Encodes the specified CopyReward message. Does not implicitly {@link CopyReward.verify|verify} messages.
     * @function encode
     * @memberof CopyReward
     * @static
     * @param {ICopyReward} message CopyReward message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    CopyReward.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.itemId != null && message.hasOwnProperty("itemId"))
            writer.uint32(/* id 1, wireType 0 =*/8).int32(message.itemId);
        if (message.title != null && message.hasOwnProperty("title"))
            writer.uint32(/* id 2, wireType 2 =*/18).string(message.title);
        if (message.count != null && message.hasOwnProperty("count"))
            writer.uint32(/* id 3, wireType 0 =*/24).int32(message.count);
        if (message.desc != null && message.hasOwnProperty("desc"))
            writer.uint32(/* id 4, wireType 2 =*/34).string(message.desc);
        return writer;
    };

    /**
     * Encodes the specified CopyReward message, length delimited. Does not implicitly {@link CopyReward.verify|verify} messages.
     * @function encodeDelimited
     * @memberof CopyReward
     * @static
     * @param {ICopyReward} message CopyReward message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    CopyReward.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes a CopyReward message from the specified reader or buffer.
     * @function decode
     * @memberof CopyReward
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {CopyReward} CopyReward
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    CopyReward.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CopyReward();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
            case 1:
                message.itemId = reader.int32();
                break;
            case 2:
                message.title = reader.string();
                break;
            case 3:
                message.count = reader.int32();
                break;
            case 4:
                message.desc = reader.string();
                break;
            default:
                reader.skipType(tag & 7);
                break;
            }
        }
        return message;
    };

    /**
     * Decodes a CopyReward message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof CopyReward
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {CopyReward} CopyReward
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    CopyReward.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies a CopyReward message.
     * @function verify
     * @memberof CopyReward
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    CopyReward.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.itemId != null && message.hasOwnProperty("itemId"))
            if (!$util.isInteger(message.itemId))
                return "itemId: integer expected";
        if (message.title != null && message.hasOwnProperty("title"))
            if (!$util.isString(message.title))
                return "title: string expected";
        if (message.count != null && message.hasOwnProperty("count"))
            if (!$util.isInteger(message.count))
                return "count: integer expected";
        if (message.desc != null && message.hasOwnProperty("desc"))
            if (!$util.isString(message.desc))
                return "desc: string expected";
        return null;
    };

    /**
     * Creates a CopyReward message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof CopyReward
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {CopyReward} CopyReward
     */
    CopyReward.fromObject = function fromObject(object) {
        if (object instanceof $root.CopyReward)
            return object;
        var message = new $root.CopyReward();
        if (object.itemId != null)
            message.itemId = object.itemId | 0;
        if (object.title != null)
            message.title = String(object.title);
        if (object.count != null)
            message.count = object.count | 0;
        if (object.desc != null)
            message.desc = String(object.desc);
        return message;
    };

    /**
     * Creates a plain object from a CopyReward message. Also converts values to other types if specified.
     * @function toObject
     * @memberof CopyReward
     * @static
     * @param {CopyReward} message CopyReward
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    CopyReward.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.defaults) {
            object.itemId = 0;
            object.title = "";
            object.count = 0;
            object.desc = "";
        }
        if (message.itemId != null && message.hasOwnProperty("itemId"))
            object.itemId = message.itemId;
        if (message.title != null && message.hasOwnProperty("title"))
            object.title = message.title;
        if (message.count != null && message.hasOwnProperty("count"))
            object.count = message.count;
        if (message.desc != null && message.hasOwnProperty("desc"))
            object.desc = message.desc;
        return object;
    };

    /**
     * Converts this CopyReward to JSON.
     * @function toJSON
     * @memberof CopyReward
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    CopyReward.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    return CopyReward;
})();

$root.CopyType = (function() {

    /**
     * Properties of a CopyType.
     * @exports ICopyType
     * @interface ICopyType
     * @property {number|null} [type1] CopyType type1
     * @property {number|null} [type2] CopyType type2
     * @property {number|null} [type3] CopyType type3
     */

    /**
     * Constructs a new CopyType.
     * @exports CopyType
     * @classdesc Represents a CopyType.
     * @implements ICopyType
     * @constructor
     * @param {ICopyType=} [properties] Properties to set
     */
    function CopyType(properties) {
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * CopyType type1.
     * @member {number} type1
     * @memberof CopyType
     * @instance
     */
    CopyType.prototype.type1 = 0;

    /**
     * CopyType type2.
     * @member {number} type2
     * @memberof CopyType
     * @instance
     */
    CopyType.prototype.type2 = 0;

    /**
     * CopyType type3.
     * @member {number} type3
     * @memberof CopyType
     * @instance
     */
    CopyType.prototype.type3 = 0;

    /**
     * Creates a new CopyType instance using the specified properties.
     * @function create
     * @memberof CopyType
     * @static
     * @param {ICopyType=} [properties] Properties to set
     * @returns {CopyType} CopyType instance
     */
    CopyType.create = function create(properties) {
        return new CopyType(properties);
    };

    /**
     * Encodes the specified CopyType message. Does not implicitly {@link CopyType.verify|verify} messages.
     * @function encode
     * @memberof CopyType
     * @static
     * @param {ICopyType} message CopyType message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    CopyType.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.type1 != null && message.hasOwnProperty("type1"))
            writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type1);
        if (message.type2 != null && message.hasOwnProperty("type2"))
            writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type2);
        if (message.type3 != null && message.hasOwnProperty("type3"))
            writer.uint32(/* id 3, wireType 0 =*/24).int32(message.type3);
        return writer;
    };

    /**
     * Encodes the specified CopyType message, length delimited. Does not implicitly {@link CopyType.verify|verify} messages.
     * @function encodeDelimited
     * @memberof CopyType
     * @static
     * @param {ICopyType} message CopyType message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    CopyType.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes a CopyType message from the specified reader or buffer.
     * @function decode
     * @memberof CopyType
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {CopyType} CopyType
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    CopyType.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CopyType();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
            case 1:
                message.type1 = reader.int32();
                break;
            case 2:
                message.type2 = reader.int32();
                break;
            case 3:
                message.type3 = reader.int32();
                break;
            default:
                reader.skipType(tag & 7);
                break;
            }
        }
        return message;
    };

    /**
     * Decodes a CopyType message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof CopyType
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {CopyType} CopyType
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    CopyType.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies a CopyType message.
     * @function verify
     * @memberof CopyType
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    CopyType.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.type1 != null && message.hasOwnProperty("type1"))
            if (!$util.isInteger(message.type1))
                return "type1: integer expected";
        if (message.type2 != null && message.hasOwnProperty("type2"))
            if (!$util.isInteger(message.type2))
                return "type2: integer expected";
        if (message.type3 != null && message.hasOwnProperty("type3"))
            if (!$util.isInteger(message.type3))
                return "type3: integer expected";
        return null;
    };

    /**
     * Creates a CopyType message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof CopyType
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {CopyType} CopyType
     */
    CopyType.fromObject = function fromObject(object) {
        if (object instanceof $root.CopyType)
            return object;
        var message = new $root.CopyType();
        if (object.type1 != null)
            message.type1 = object.type1 | 0;
        if (object.type2 != null)
            message.type2 = object.type2 | 0;
        if (object.type3 != null)
            message.type3 = object.type3 | 0;
        return message;
    };

    /**
     * Creates a plain object from a CopyType message. Also converts values to other types if specified.
     * @function toObject
     * @memberof CopyType
     * @static
     * @param {CopyType} message CopyType
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    CopyType.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.defaults) {
            object.type1 = 0;
            object.type2 = 0;
            object.type3 = 0;
        }
        if (message.type1 != null && message.hasOwnProperty("type1"))
            object.type1 = message.type1;
        if (message.type2 != null && message.hasOwnProperty("type2"))
            object.type2 = message.type2;
        if (message.type3 != null && message.hasOwnProperty("type3"))
            object.type3 = message.type3;
        return object;
    };

    /**
     * Converts this CopyType to JSON.
     * @function toJSON
     * @memberof CopyType
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    CopyType.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    return CopyType;
})();

$root.CopyInfos = (function() {

    /**
     * Properties of a CopyInfos.
     * @exports ICopyInfos
     * @interface ICopyInfos
     * @property {number|null} [id] CopyInfos id
     * @property {Array.<string>|null} [descs] CopyInfos descs
     * @property {Array.<ICopyInfo>|null} [infos] CopyInfos infos
     */

    /**
     * Constructs a new CopyInfos.
     * @exports CopyInfos
     * @classdesc Represents a CopyInfos.
     * @implements ICopyInfos
     * @constructor
     * @param {ICopyInfos=} [properties] Properties to set
     */
    function CopyInfos(properties) {
        this.descs = [];
        this.infos = [];
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * CopyInfos id.
     * @member {number} id
     * @memberof CopyInfos
     * @instance
     */
    CopyInfos.prototype.id = 0;

    /**
     * CopyInfos descs.
     * @member {Array.<string>} descs
     * @memberof CopyInfos
     * @instance
     */
    CopyInfos.prototype.descs = $util.emptyArray;

    /**
     * CopyInfos infos.
     * @member {Array.<ICopyInfo>} infos
     * @memberof CopyInfos
     * @instance
     */
    CopyInfos.prototype.infos = $util.emptyArray;

    /**
     * Creates a new CopyInfos instance using the specified properties.
     * @function create
     * @memberof CopyInfos
     * @static
     * @param {ICopyInfos=} [properties] Properties to set
     * @returns {CopyInfos} CopyInfos instance
     */
    CopyInfos.create = function create(properties) {
        return new CopyInfos(properties);
    };

    /**
     * Encodes the specified CopyInfos message. Does not implicitly {@link CopyInfos.verify|verify} messages.
     * @function encode
     * @memberof CopyInfos
     * @static
     * @param {ICopyInfos} message CopyInfos message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    CopyInfos.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.id != null && message.hasOwnProperty("id"))
            writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id);
        if (message.descs != null && message.descs.length)
            for (var i = 0; i < message.descs.length; ++i)
                writer.uint32(/* id 2, wireType 2 =*/18).string(message.descs[i]);
        if (message.infos != null && message.infos.length)
            for (var i = 0; i < message.infos.length; ++i)
                $root.CopyInfo.encode(message.infos[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
        return writer;
    };

    /**
     * Encodes the specified CopyInfos message, length delimited. Does not implicitly {@link CopyInfos.verify|verify} messages.
     * @function encodeDelimited
     * @memberof CopyInfos
     * @static
     * @param {ICopyInfos} message CopyInfos message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    CopyInfos.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes a CopyInfos message from the specified reader or buffer.
     * @function decode
     * @memberof CopyInfos
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {CopyInfos} CopyInfos
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    CopyInfos.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CopyInfos();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
            case 1:
                message.id = reader.int32();
                break;
            case 2:
                if (!(message.descs && message.descs.length))
                    message.descs = [];
                message.descs.push(reader.string());
                break;
            case 3:
                if (!(message.infos && message.infos.length))
                    message.infos = [];
                message.infos.push($root.CopyInfo.decode(reader, reader.uint32()));
                break;
            default:
                reader.skipType(tag & 7);
                break;
            }
        }
        return message;
    };

    /**
     * Decodes a CopyInfos message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof CopyInfos
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {CopyInfos} CopyInfos
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    CopyInfos.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies a CopyInfos message.
     * @function verify
     * @memberof CopyInfos
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    CopyInfos.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.id != null && message.hasOwnProperty("id"))
            if (!$util.isInteger(message.id))
                return "id: integer expected";
        if (message.descs != null && message.hasOwnProperty("descs")) {
            if (!Array.isArray(message.descs))
                return "descs: array expected";
            for (var i = 0; i < message.descs.length; ++i)
                if (!$util.isString(message.descs[i]))
                    return "descs: string[] expected";
        }
        if (message.infos != null && message.hasOwnProperty("infos")) {
            if (!Array.isArray(message.infos))
                return "infos: array expected";
            for (var i = 0; i < message.infos.length; ++i) {
                var error = $root.CopyInfo.verify(message.infos[i]);
                if (error)
                    return "infos." + error;
            }
        }
        return null;
    };

    /**
     * Creates a CopyInfos message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof CopyInfos
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {CopyInfos} CopyInfos
     */
    CopyInfos.fromObject = function fromObject(object) {
        if (object instanceof $root.CopyInfos)
            return object;
        var message = new $root.CopyInfos();
        if (object.id != null)
            message.id = object.id | 0;
        if (object.descs) {
            if (!Array.isArray(object.descs))
                throw TypeError(".CopyInfos.descs: array expected");
            message.descs = [];
            for (var i = 0; i < object.descs.length; ++i)
                message.descs[i] = String(object.descs[i]);
        }
        if (object.infos) {
            if (!Array.isArray(object.infos))
                throw TypeError(".CopyInfos.infos: array expected");
            message.infos = [];
            for (var i = 0; i < object.infos.length; ++i) {
                if (typeof object.infos[i] !== "object")
                    throw TypeError(".CopyInfos.infos: object expected");
                message.infos[i] = $root.CopyInfo.fromObject(object.infos[i]);
            }
        }
        return message;
    };

    /**
     * Creates a plain object from a CopyInfos message. Also converts values to other types if specified.
     * @function toObject
     * @memberof CopyInfos
     * @static
     * @param {CopyInfos} message CopyInfos
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    CopyInfos.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.arrays || options.defaults) {
            object.descs = [];
            object.infos = [];
        }
        if (options.defaults)
            object.id = 0;
        if (message.id != null && message.hasOwnProperty("id"))
            object.id = message.id;
        if (message.descs && message.descs.length) {
            object.descs = [];
            for (var j = 0; j < message.descs.length; ++j)
                object.descs[j] = message.descs[j];
        }
        if (message.infos && message.infos.length) {
            object.infos = [];
            for (var j = 0; j < message.infos.length; ++j)
                object.infos[j] = $root.CopyInfo.toObject(message.infos[j], options);
        }
        return object;
    };

    /**
     * Converts this CopyInfos to JSON.
     * @function toJSON
     * @memberof CopyInfos
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    CopyInfos.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    return CopyInfos;
})();